:root {
    --primary-color: #4a90e2;
    --primary-hover: #357abd;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --error-color: #ff4d4f;
    --success-color: #52c41a;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#app {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    transition: var(--transition);
    animation: fadeIn 0.5s ease-out;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--secondary-color);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1.8rem;
    color: var(--text-light);
}

.remember-me input {
    width: auto;
    margin-right: 0.8rem;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    padding: 0.7rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

.login-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.login-btn:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
    transform: none;
}

.links {
    margin-top: 1.2rem;
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 4px;
}

.links a:hover {
    color: var(--primary-hover);
    background-color: rgba(74, 144, 226, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1.8rem;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .form-group input {
        padding: 0.8rem;
    }

    .login-btn {
        padding: 0.8rem;
    }
} 


/* ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ Toast 通知 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;
}

.toast {
    padding: 12px 24px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    margin-bottom: 10px;
    animation: slideUpIn 0.3s ease forwards;
    pointer-events: auto;
}

.toast.info { background: #147EC9; }
.toast.success { background: #11AD45; }
.toast.warning { background: #F5A300; }
.toast.error { background: #E60914; }

@keyframes slideUpIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUpOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}
/* ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ Toast 通知 ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ */